import java.util.*;
public class Main{
public static void main(String args[]) {
        Operate1 operate = new Operate1();
        Scanner reader = new Scanner(System.in);
        String p=reader.nextLine();
        char arr[]=p.toCharArray();
        for(int i=0;i<arr.length;i++){//
        if(arr[i] == '/'&& arr[i+1]=='0'){
            System.out.println("error");
            System.exit(0);
        }
    }
           double t = operate.caculate(p);
           System.out.println(p+"="+t);
        }
        }
